/*
 * Copyright 2018 Google
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/firestore/v1/common.proto

#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fcommon_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fcommon_2eproto

#include <limits>
#include <string>

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3011000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3011002 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include "google/api/annotations.pb.h"
#include <google/protobuf/timestamp.pb.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fcommon_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto {
  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto;
namespace google {
namespace firestore {
namespace v1 {
class DocumentMask;
class DocumentMaskDefaultTypeInternal;
extern DocumentMaskDefaultTypeInternal _DocumentMask_default_instance_;
class Precondition;
class PreconditionDefaultTypeInternal;
extern PreconditionDefaultTypeInternal _Precondition_default_instance_;
class TransactionOptions;
class TransactionOptionsDefaultTypeInternal;
extern TransactionOptionsDefaultTypeInternal _TransactionOptions_default_instance_;
class TransactionOptions_ReadOnly;
class TransactionOptions_ReadOnlyDefaultTypeInternal;
extern TransactionOptions_ReadOnlyDefaultTypeInternal _TransactionOptions_ReadOnly_default_instance_;
class TransactionOptions_ReadWrite;
class TransactionOptions_ReadWriteDefaultTypeInternal;
extern TransactionOptions_ReadWriteDefaultTypeInternal _TransactionOptions_ReadWrite_default_instance_;
}  // namespace v1
}  // namespace firestore
}  // namespace google
PROTOBUF_NAMESPACE_OPEN
template<> ::google::firestore::v1::DocumentMask* Arena::CreateMaybeMessage<::google::firestore::v1::DocumentMask>(Arena*);
template<> ::google::firestore::v1::Precondition* Arena::CreateMaybeMessage<::google::firestore::v1::Precondition>(Arena*);
template<> ::google::firestore::v1::TransactionOptions* Arena::CreateMaybeMessage<::google::firestore::v1::TransactionOptions>(Arena*);
template<> ::google::firestore::v1::TransactionOptions_ReadOnly* Arena::CreateMaybeMessage<::google::firestore::v1::TransactionOptions_ReadOnly>(Arena*);
template<> ::google::firestore::v1::TransactionOptions_ReadWrite* Arena::CreateMaybeMessage<::google::firestore::v1::TransactionOptions_ReadWrite>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace google {
namespace firestore {
namespace v1 {

// ===================================================================

class DocumentMask :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentMask) */ {
 public:
  DocumentMask();
  virtual ~DocumentMask();

  DocumentMask(const DocumentMask& from);
  DocumentMask(DocumentMask&& from) noexcept
    : DocumentMask() {
    *this = ::std::move(from);
  }

  inline DocumentMask& operator=(const DocumentMask& from) {
    CopyFrom(from);
    return *this;
  }
  inline DocumentMask& operator=(DocumentMask&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const DocumentMask& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const DocumentMask* internal_default_instance() {
    return reinterpret_cast<const DocumentMask*>(
               &_DocumentMask_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(DocumentMask& a, DocumentMask& b) {
    a.Swap(&b);
  }
  inline void Swap(DocumentMask* other) {
    if (other == this) return;
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  inline DocumentMask* New() const final {
    return CreateMaybeMessage<DocumentMask>(nullptr);
  }

  DocumentMask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<DocumentMask>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const DocumentMask& from);
  void MergeFrom(const DocumentMask& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
      ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(DocumentMask* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "google.firestore.v1.DocumentMask";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto);
    return ::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kFieldPathsFieldNumber = 1,
  };
  // repeated string field_paths = 1;
  int field_paths_size() const;
  private:
  int _internal_field_paths_size() const;
  public:
  void clear_field_paths();
  const std::string& field_paths(int index) const;
  std::string* mutable_field_paths(int index);
  void set_field_paths(int index, const std::string& value);
  void set_field_paths(int index, std::string&& value);
  void set_field_paths(int index, const char* value);
  void set_field_paths(int index, const char* value, size_t size);
  std::string* add_field_paths();
  void add_field_paths(const std::string& value);
  void add_field_paths(std::string&& value);
  void add_field_paths(const char* value);
  void add_field_paths(const char* value, size_t size);
  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& field_paths() const;
  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_field_paths();
  private:
  const std::string& _internal_field_paths(int index) const;
  std::string* _internal_add_field_paths();
  public:

  // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentMask)
 private:
  class _Internal;

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> field_paths_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------

class Precondition :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Precondition) */ {
 public:
  Precondition();
  virtual ~Precondition();

  Precondition(const Precondition& from);
  Precondition(Precondition&& from) noexcept
    : Precondition() {
    *this = ::std::move(from);
  }

  inline Precondition& operator=(const Precondition& from) {
    CopyFrom(from);
    return *this;
  }
  inline Precondition& operator=(Precondition&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const Precondition& default_instance();

  enum ConditionTypeCase {
    kExists = 1,
    kUpdateTime = 2,
    CONDITION_TYPE_NOT_SET = 0,
  };

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const Precondition* internal_default_instance() {
    return reinterpret_cast<const Precondition*>(
               &_Precondition_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    1;

  friend void swap(Precondition& a, Precondition& b) {
    a.Swap(&b);
  }
  inline void Swap(Precondition* other) {
    if (other == this) return;
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  inline Precondition* New() const final {
    return CreateMaybeMessage<Precondition>(nullptr);
  }

  Precondition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<Precondition>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const Precondition& from);
  void MergeFrom(const Precondition& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
      ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(Precondition* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "google.firestore.v1.Precondition";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto);
    return ::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kExistsFieldNumber = 1,
    kUpdateTimeFieldNumber = 2,
  };
  // bool exists = 1;
  private:
  bool _internal_has_exists() const;
  public:
  void clear_exists();
  bool exists() const;
  void set_exists(bool value);
  private:
  bool _internal_exists() const;
  void _internal_set_exists(bool value);
  public:

  // .google.protobuf.Timestamp update_time = 2;
  bool has_update_time() const;
  private:
  bool _internal_has_update_time() const;
  public:
  void clear_update_time();
  const PROTOBUF_NAMESPACE_ID::Timestamp& update_time() const;
  PROTOBUF_NAMESPACE_ID::Timestamp* release_update_time();
  PROTOBUF_NAMESPACE_ID::Timestamp* mutable_update_time();
  void set_allocated_update_time(PROTOBUF_NAMESPACE_ID::Timestamp* update_time);
  private:
  const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_update_time() const;
  PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_update_time();
  public:

  void clear_condition_type();
  ConditionTypeCase condition_type_case() const;
  // @@protoc_insertion_point(class_scope:google.firestore.v1.Precondition)
 private:
  class _Internal;
  void set_has_exists();
  void set_has_update_time();

  inline bool has_condition_type() const;
  inline void clear_has_condition_type();

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  union ConditionTypeUnion {
    ConditionTypeUnion() {}
    bool exists_;
    PROTOBUF_NAMESPACE_ID::Timestamp* update_time_;
  } condition_type_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];

  friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------

class TransactionOptions_ReadWrite :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TransactionOptions.ReadWrite) */ {
 public:
  TransactionOptions_ReadWrite();
  virtual ~TransactionOptions_ReadWrite();

  TransactionOptions_ReadWrite(const TransactionOptions_ReadWrite& from);
  TransactionOptions_ReadWrite(TransactionOptions_ReadWrite&& from) noexcept
    : TransactionOptions_ReadWrite() {
    *this = ::std::move(from);
  }

  inline TransactionOptions_ReadWrite& operator=(const TransactionOptions_ReadWrite& from) {
    CopyFrom(from);
    return *this;
  }
  inline TransactionOptions_ReadWrite& operator=(TransactionOptions_ReadWrite&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const TransactionOptions_ReadWrite& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const TransactionOptions_ReadWrite* internal_default_instance() {
    return reinterpret_cast<const TransactionOptions_ReadWrite*>(
               &_TransactionOptions_ReadWrite_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    2;

  friend void swap(TransactionOptions_ReadWrite& a, TransactionOptions_ReadWrite& b) {
    a.Swap(&b);
  }
  inline void Swap(TransactionOptions_ReadWrite* other) {
    if (other == this) return;
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  inline TransactionOptions_ReadWrite* New() const final {
    return CreateMaybeMessage<TransactionOptions_ReadWrite>(nullptr);
  }

  TransactionOptions_ReadWrite* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<TransactionOptions_ReadWrite>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const TransactionOptions_ReadWrite& from);
  void MergeFrom(const TransactionOptions_ReadWrite& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
      ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(TransactionOptions_ReadWrite* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "google.firestore.v1.TransactionOptions.ReadWrite";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto);
    return ::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kRetryTransactionFieldNumber = 1,
  };
  // bytes retry_transaction = 1;
  void clear_retry_transaction();
  const std::string& retry_transaction() const;
  void set_retry_transaction(const std::string& value);
  void set_retry_transaction(std::string&& value);
  void set_retry_transaction(const char* value);
  void set_retry_transaction(const void* value, size_t size);
  std::string* mutable_retry_transaction();
  std::string* release_retry_transaction();
  void set_allocated_retry_transaction(std::string* retry_transaction);
  private:
  const std::string& _internal_retry_transaction() const;
  void _internal_set_retry_transaction(const std::string& value);
  std::string* _internal_mutable_retry_transaction();
  public:

  // @@protoc_insertion_point(class_scope:google.firestore.v1.TransactionOptions.ReadWrite)
 private:
  class _Internal;

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr retry_transaction_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------

class TransactionOptions_ReadOnly :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TransactionOptions.ReadOnly) */ {
 public:
  TransactionOptions_ReadOnly();
  virtual ~TransactionOptions_ReadOnly();

  TransactionOptions_ReadOnly(const TransactionOptions_ReadOnly& from);
  TransactionOptions_ReadOnly(TransactionOptions_ReadOnly&& from) noexcept
    : TransactionOptions_ReadOnly() {
    *this = ::std::move(from);
  }

  inline TransactionOptions_ReadOnly& operator=(const TransactionOptions_ReadOnly& from) {
    CopyFrom(from);
    return *this;
  }
  inline TransactionOptions_ReadOnly& operator=(TransactionOptions_ReadOnly&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const TransactionOptions_ReadOnly& default_instance();

  enum ConsistencySelectorCase {
    kReadTime = 2,
    CONSISTENCY_SELECTOR_NOT_SET = 0,
  };

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const TransactionOptions_ReadOnly* internal_default_instance() {
    return reinterpret_cast<const TransactionOptions_ReadOnly*>(
               &_TransactionOptions_ReadOnly_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    3;

  friend void swap(TransactionOptions_ReadOnly& a, TransactionOptions_ReadOnly& b) {
    a.Swap(&b);
  }
  inline void Swap(TransactionOptions_ReadOnly* other) {
    if (other == this) return;
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  inline TransactionOptions_ReadOnly* New() const final {
    return CreateMaybeMessage<TransactionOptions_ReadOnly>(nullptr);
  }

  TransactionOptions_ReadOnly* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<TransactionOptions_ReadOnly>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const TransactionOptions_ReadOnly& from);
  void MergeFrom(const TransactionOptions_ReadOnly& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
      ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(TransactionOptions_ReadOnly* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "google.firestore.v1.TransactionOptions.ReadOnly";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto);
    return ::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kReadTimeFieldNumber = 2,
  };
  // .google.protobuf.Timestamp read_time = 2;
  bool has_read_time() const;
  private:
  bool _internal_has_read_time() const;
  public:
  void clear_read_time();
  const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  private:
  const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  public:

  void clear_consistency_selector();
  ConsistencySelectorCase consistency_selector_case() const;
  // @@protoc_insertion_point(class_scope:google.firestore.v1.TransactionOptions.ReadOnly)
 private:
  class _Internal;
  void set_has_read_time();

  inline bool has_consistency_selector() const;
  inline void clear_has_consistency_selector();

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  union ConsistencySelectorUnion {
    ConsistencySelectorUnion() {}
    PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  } consistency_selector_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];

  friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------

class TransactionOptions :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TransactionOptions) */ {
 public:
  TransactionOptions();
  virtual ~TransactionOptions();

  TransactionOptions(const TransactionOptions& from);
  TransactionOptions(TransactionOptions&& from) noexcept
    : TransactionOptions() {
    *this = ::std::move(from);
  }

  inline TransactionOptions& operator=(const TransactionOptions& from) {
    CopyFrom(from);
    return *this;
  }
  inline TransactionOptions& operator=(TransactionOptions&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const TransactionOptions& default_instance();

  enum ModeCase {
    kReadOnly = 2,
    kReadWrite = 3,
    MODE_NOT_SET = 0,
  };

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const TransactionOptions* internal_default_instance() {
    return reinterpret_cast<const TransactionOptions*>(
               &_TransactionOptions_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    4;

  friend void swap(TransactionOptions& a, TransactionOptions& b) {
    a.Swap(&b);
  }
  inline void Swap(TransactionOptions* other) {
    if (other == this) return;
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  inline TransactionOptions* New() const final {
    return CreateMaybeMessage<TransactionOptions>(nullptr);
  }

  TransactionOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<TransactionOptions>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const TransactionOptions& from);
  void MergeFrom(const TransactionOptions& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
      ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(TransactionOptions* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "google.firestore.v1.TransactionOptions";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto);
    return ::descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

  // nested types ----------------------------------------------------

  typedef TransactionOptions_ReadWrite ReadWrite;
  typedef TransactionOptions_ReadOnly ReadOnly;

  // accessors -------------------------------------------------------

  enum : int {
    kReadOnlyFieldNumber = 2,
    kReadWriteFieldNumber = 3,
  };
  // .google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
  bool has_read_only() const;
  private:
  bool _internal_has_read_only() const;
  public:
  void clear_read_only();
  const ::google::firestore::v1::TransactionOptions_ReadOnly& read_only() const;
  ::google::firestore::v1::TransactionOptions_ReadOnly* release_read_only();
  ::google::firestore::v1::TransactionOptions_ReadOnly* mutable_read_only();
  void set_allocated_read_only(::google::firestore::v1::TransactionOptions_ReadOnly* read_only);
  private:
  const ::google::firestore::v1::TransactionOptions_ReadOnly& _internal_read_only() const;
  ::google::firestore::v1::TransactionOptions_ReadOnly* _internal_mutable_read_only();
  public:

  // .google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
  bool has_read_write() const;
  private:
  bool _internal_has_read_write() const;
  public:
  void clear_read_write();
  const ::google::firestore::v1::TransactionOptions_ReadWrite& read_write() const;
  ::google::firestore::v1::TransactionOptions_ReadWrite* release_read_write();
  ::google::firestore::v1::TransactionOptions_ReadWrite* mutable_read_write();
  void set_allocated_read_write(::google::firestore::v1::TransactionOptions_ReadWrite* read_write);
  private:
  const ::google::firestore::v1::TransactionOptions_ReadWrite& _internal_read_write() const;
  ::google::firestore::v1::TransactionOptions_ReadWrite* _internal_mutable_read_write();
  public:

  void clear_mode();
  ModeCase mode_case() const;
  // @@protoc_insertion_point(class_scope:google.firestore.v1.TransactionOptions)
 private:
  class _Internal;
  void set_has_read_only();
  void set_has_read_write();

  inline bool has_mode() const;
  inline void clear_has_mode();

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  union ModeUnion {
    ModeUnion() {}
    ::google::firestore::v1::TransactionOptions_ReadOnly* read_only_;
    ::google::firestore::v1::TransactionOptions_ReadWrite* read_write_;
  } mode_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];

  friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
};
// ===================================================================


// ===================================================================

#ifdef __GNUC__
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// DocumentMask

// repeated string field_paths = 1;
inline int DocumentMask::_internal_field_paths_size() const {
  return field_paths_.size();
}
inline int DocumentMask::field_paths_size() const {
  return _internal_field_paths_size();
}
inline void DocumentMask::clear_field_paths() {
  field_paths_.Clear();
}
inline std::string* DocumentMask::add_field_paths() {
  // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.DocumentMask.field_paths)
  return _internal_add_field_paths();
}
inline const std::string& DocumentMask::_internal_field_paths(int index) const {
  return field_paths_.Get(index);
}
inline const std::string& DocumentMask::field_paths(int index) const {
  // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentMask.field_paths)
  return _internal_field_paths(index);
}
inline std::string* DocumentMask::mutable_field_paths(int index) {
  // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentMask.field_paths)
  return field_paths_.Mutable(index);
}
inline void DocumentMask::set_field_paths(int index, const std::string& value) {
  // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentMask.field_paths)
  field_paths_.Mutable(index)->assign(value);
}
inline void DocumentMask::set_field_paths(int index, std::string&& value) {
  // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentMask.field_paths)
  field_paths_.Mutable(index)->assign(std::move(value));
}
inline void DocumentMask::set_field_paths(int index, const char* value) {
  GOOGLE_DCHECK(value != nullptr);
  field_paths_.Mutable(index)->assign(value);
  // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentMask.field_paths)
}
inline void DocumentMask::set_field_paths(int index, const char* value, size_t size) {
  field_paths_.Mutable(index)->assign(
    reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentMask.field_paths)
}
inline std::string* DocumentMask::_internal_add_field_paths() {
  return field_paths_.Add();
}
inline void DocumentMask::add_field_paths(const std::string& value) {
  field_paths_.Add()->assign(value);
  // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentMask.field_paths)
}
inline void DocumentMask::add_field_paths(std::string&& value) {
  field_paths_.Add(std::move(value));
  // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentMask.field_paths)
}
inline void DocumentMask::add_field_paths(const char* value) {
  GOOGLE_DCHECK(value != nullptr);
  field_paths_.Add()->assign(value);
  // @@protoc_insertion_point(field_add_char:google.firestore.v1.DocumentMask.field_paths)
}
inline void DocumentMask::add_field_paths(const char* value, size_t size) {
  field_paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.DocumentMask.field_paths)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
DocumentMask::field_paths() const {
  // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentMask.field_paths)
  return field_paths_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
DocumentMask::mutable_field_paths() {
  // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentMask.field_paths)
  return &field_paths_;
}

// -------------------------------------------------------------------

// Precondition

// bool exists = 1;
inline bool Precondition::_internal_has_exists() const {
  return condition_type_case() == kExists;
}
inline void Precondition::set_has_exists() {
  _oneof_case_[0] = kExists;
}
inline void Precondition::clear_exists() {
  if (_internal_has_exists()) {
    condition_type_.exists_ = false;
    clear_has_condition_type();
  }
}
inline bool Precondition::_internal_exists() const {
  if (_internal_has_exists()) {
    return condition_type_.exists_;
  }
  return false;
}
inline void Precondition::_internal_set_exists(bool value) {
  if (!_internal_has_exists()) {
    clear_condition_type();
    set_has_exists();
  }
  condition_type_.exists_ = value;
}
inline bool Precondition::exists() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1.Precondition.exists)
  return _internal_exists();
}
inline void Precondition::set_exists(bool value) {
  _internal_set_exists(value);
  // @@protoc_insertion_point(field_set:google.firestore.v1.Precondition.exists)
}

// .google.protobuf.Timestamp update_time = 2;
inline bool Precondition::_internal_has_update_time() const {
  return condition_type_case() == kUpdateTime;
}
inline bool Precondition::has_update_time() const {
  return _internal_has_update_time();
}
inline void Precondition::set_has_update_time() {
  _oneof_case_[0] = kUpdateTime;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Precondition::release_update_time() {
  // @@protoc_insertion_point(field_release:google.firestore.v1.Precondition.update_time)
  if (_internal_has_update_time()) {
    clear_has_condition_type();
      PROTOBUF_NAMESPACE_ID::Timestamp* temp = condition_type_.update_time_;
    condition_type_.update_time_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& Precondition::_internal_update_time() const {
  return _internal_has_update_time()
      ? *condition_type_.update_time_
      : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& Precondition::update_time() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1.Precondition.update_time)
  return _internal_update_time();
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Precondition::_internal_mutable_update_time() {
  if (!_internal_has_update_time()) {
    clear_condition_type();
    set_has_update_time();
    condition_type_.update_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
        GetArenaNoVirtual());
  }
  return condition_type_.update_time_;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Precondition::mutable_update_time() {
  // @@protoc_insertion_point(field_mutable:google.firestore.v1.Precondition.update_time)
  return _internal_mutable_update_time();
}

inline bool Precondition::has_condition_type() const {
  return condition_type_case() != CONDITION_TYPE_NOT_SET;
}
inline void Precondition::clear_has_condition_type() {
  _oneof_case_[0] = CONDITION_TYPE_NOT_SET;
}
inline Precondition::ConditionTypeCase Precondition::condition_type_case() const {
  return Precondition::ConditionTypeCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------

// TransactionOptions_ReadWrite

// bytes retry_transaction = 1;
inline void TransactionOptions_ReadWrite::clear_retry_transaction() {
  retry_transaction_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& TransactionOptions_ReadWrite::retry_transaction() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
  return _internal_retry_transaction();
}
inline void TransactionOptions_ReadWrite::set_retry_transaction(const std::string& value) {
  _internal_set_retry_transaction(value);
  // @@protoc_insertion_point(field_set:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
}
inline std::string* TransactionOptions_ReadWrite::mutable_retry_transaction() {
  // @@protoc_insertion_point(field_mutable:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
  return _internal_mutable_retry_transaction();
}
inline const std::string& TransactionOptions_ReadWrite::_internal_retry_transaction() const {
  return retry_transaction_.GetNoArena();
}
inline void TransactionOptions_ReadWrite::_internal_set_retry_transaction(const std::string& value) {
  
  retry_transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
}
inline void TransactionOptions_ReadWrite::set_retry_transaction(std::string&& value) {
  
  retry_transaction_.SetNoArena(
    &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
}
inline void TransactionOptions_ReadWrite::set_retry_transaction(const char* value) {
  GOOGLE_DCHECK(value != nullptr);
  
  retry_transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
}
inline void TransactionOptions_ReadWrite::set_retry_transaction(const void* value, size_t size) {
  
  retry_transaction_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
}
inline std::string* TransactionOptions_ReadWrite::_internal_mutable_retry_transaction() {
  
  return retry_transaction_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* TransactionOptions_ReadWrite::release_retry_transaction() {
  // @@protoc_insertion_point(field_release:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
  
  return retry_transaction_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void TransactionOptions_ReadWrite::set_allocated_retry_transaction(std::string* retry_transaction) {
  if (retry_transaction != nullptr) {
    
  } else {
    
  }
  retry_transaction_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), retry_transaction);
  // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
}

// -------------------------------------------------------------------

// TransactionOptions_ReadOnly

// .google.protobuf.Timestamp read_time = 2;
inline bool TransactionOptions_ReadOnly::_internal_has_read_time() const {
  return consistency_selector_case() == kReadTime;
}
inline bool TransactionOptions_ReadOnly::has_read_time() const {
  return _internal_has_read_time();
}
inline void TransactionOptions_ReadOnly::set_has_read_time() {
  _oneof_case_[0] = kReadTime;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* TransactionOptions_ReadOnly::release_read_time() {
  // @@protoc_insertion_point(field_release:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
  if (_internal_has_read_time()) {
    clear_has_consistency_selector();
      PROTOBUF_NAMESPACE_ID::Timestamp* temp = consistency_selector_.read_time_;
    consistency_selector_.read_time_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& TransactionOptions_ReadOnly::_internal_read_time() const {
  return _internal_has_read_time()
      ? *consistency_selector_.read_time_
      : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& TransactionOptions_ReadOnly::read_time() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
  return _internal_read_time();
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* TransactionOptions_ReadOnly::_internal_mutable_read_time() {
  if (!_internal_has_read_time()) {
    clear_consistency_selector();
    set_has_read_time();
    consistency_selector_.read_time_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(
        GetArenaNoVirtual());
  }
  return consistency_selector_.read_time_;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* TransactionOptions_ReadOnly::mutable_read_time() {
  // @@protoc_insertion_point(field_mutable:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
  return _internal_mutable_read_time();
}

inline bool TransactionOptions_ReadOnly::has_consistency_selector() const {
  return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
}
inline void TransactionOptions_ReadOnly::clear_has_consistency_selector() {
  _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
}
inline TransactionOptions_ReadOnly::ConsistencySelectorCase TransactionOptions_ReadOnly::consistency_selector_case() const {
  return TransactionOptions_ReadOnly::ConsistencySelectorCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------

// TransactionOptions

// .google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
inline bool TransactionOptions::_internal_has_read_only() const {
  return mode_case() == kReadOnly;
}
inline bool TransactionOptions::has_read_only() const {
  return _internal_has_read_only();
}
inline void TransactionOptions::set_has_read_only() {
  _oneof_case_[0] = kReadOnly;
}
inline void TransactionOptions::clear_read_only() {
  if (_internal_has_read_only()) {
    delete mode_.read_only_;
    clear_has_mode();
  }
}
inline ::google::firestore::v1::TransactionOptions_ReadOnly* TransactionOptions::release_read_only() {
  // @@protoc_insertion_point(field_release:google.firestore.v1.TransactionOptions.read_only)
  if (_internal_has_read_only()) {
    clear_has_mode();
      ::google::firestore::v1::TransactionOptions_ReadOnly* temp = mode_.read_only_;
    mode_.read_only_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::google::firestore::v1::TransactionOptions_ReadOnly& TransactionOptions::_internal_read_only() const {
  return _internal_has_read_only()
      ? *mode_.read_only_
      : *reinterpret_cast< ::google::firestore::v1::TransactionOptions_ReadOnly*>(&::google::firestore::v1::_TransactionOptions_ReadOnly_default_instance_);
}
inline const ::google::firestore::v1::TransactionOptions_ReadOnly& TransactionOptions::read_only() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1.TransactionOptions.read_only)
  return _internal_read_only();
}
inline ::google::firestore::v1::TransactionOptions_ReadOnly* TransactionOptions::_internal_mutable_read_only() {
  if (!_internal_has_read_only()) {
    clear_mode();
    set_has_read_only();
    mode_.read_only_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions_ReadOnly >(
        GetArenaNoVirtual());
  }
  return mode_.read_only_;
}
inline ::google::firestore::v1::TransactionOptions_ReadOnly* TransactionOptions::mutable_read_only() {
  // @@protoc_insertion_point(field_mutable:google.firestore.v1.TransactionOptions.read_only)
  return _internal_mutable_read_only();
}

// .google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
inline bool TransactionOptions::_internal_has_read_write() const {
  return mode_case() == kReadWrite;
}
inline bool TransactionOptions::has_read_write() const {
  return _internal_has_read_write();
}
inline void TransactionOptions::set_has_read_write() {
  _oneof_case_[0] = kReadWrite;
}
inline void TransactionOptions::clear_read_write() {
  if (_internal_has_read_write()) {
    delete mode_.read_write_;
    clear_has_mode();
  }
}
inline ::google::firestore::v1::TransactionOptions_ReadWrite* TransactionOptions::release_read_write() {
  // @@protoc_insertion_point(field_release:google.firestore.v1.TransactionOptions.read_write)
  if (_internal_has_read_write()) {
    clear_has_mode();
      ::google::firestore::v1::TransactionOptions_ReadWrite* temp = mode_.read_write_;
    mode_.read_write_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::google::firestore::v1::TransactionOptions_ReadWrite& TransactionOptions::_internal_read_write() const {
  return _internal_has_read_write()
      ? *mode_.read_write_
      : *reinterpret_cast< ::google::firestore::v1::TransactionOptions_ReadWrite*>(&::google::firestore::v1::_TransactionOptions_ReadWrite_default_instance_);
}
inline const ::google::firestore::v1::TransactionOptions_ReadWrite& TransactionOptions::read_write() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1.TransactionOptions.read_write)
  return _internal_read_write();
}
inline ::google::firestore::v1::TransactionOptions_ReadWrite* TransactionOptions::_internal_mutable_read_write() {
  if (!_internal_has_read_write()) {
    clear_mode();
    set_has_read_write();
    mode_.read_write_ = CreateMaybeMessage< ::google::firestore::v1::TransactionOptions_ReadWrite >(
        GetArenaNoVirtual());
  }
  return mode_.read_write_;
}
inline ::google::firestore::v1::TransactionOptions_ReadWrite* TransactionOptions::mutable_read_write() {
  // @@protoc_insertion_point(field_mutable:google.firestore.v1.TransactionOptions.read_write)
  return _internal_mutable_read_write();
}

inline bool TransactionOptions::has_mode() const {
  return mode_case() != MODE_NOT_SET;
}
inline void TransactionOptions::clear_has_mode() {
  _oneof_case_[0] = MODE_NOT_SET;
}
inline TransactionOptions::ModeCase TransactionOptions::mode_case() const {
  return TransactionOptions::ModeCase(_oneof_case_[0]);
}
#ifdef __GNUC__
  #pragma GCC diagnostic pop
#endif  // __GNUC__
// -------------------------------------------------------------------

// -------------------------------------------------------------------

// -------------------------------------------------------------------

// -------------------------------------------------------------------


// @@protoc_insertion_point(namespace_scope)

}  // namespace v1
}  // namespace firestore
}  // namespace google

// @@protoc_insertion_point(global_scope)

#include <google/protobuf/port_undef.inc>
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fcommon_2eproto
